<template>
    <div>
        <page-header title="卡片列表" content="卡片类型的列表，配合栅格实现响应式布局。" />
        <el-row gutter="20" style="margin: 0 10px;">
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用。前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
            <el-col :lg="6" :md="8" :sm="12">
                <el-card shadow="hover" class="action-card">
                    <div class="content">
                        <div class="item">
                            <el-avatar size="medium">
                                <i class="el-icon-user-solid" />
                            </el-avatar>
                        </div>
                        <div class="item">
                            <div class="name">Hooray</div>
                            <div class="intro">前端开发工程师，10年+开发经验，可开发 Web / H5 / 小程序 等应用</div>
                        </div>
                    </div>
                    <div class="action-bar">
                        <el-button type="text">操作一</el-button>
                        <el-button type="text">操作二</el-button>
                    </div>
                </el-card>
            </el-col>
        </el-row>
    </div>
</template>

<style lang="scss" scoped>
.action-card {
    margin-bottom: 20px;
    .content {
        display: flex;
        .item {
            margin-right: 15px;
            .name {
                margin-bottom: 12px;
                color: #000;
                font-size: 16px;
                line-height: 24px;
            }
            .intro {
                color: #666;
                font-size: 14px;
                height: 66px;
                line-height: 22px;
                @include text-overflow(3);
            }
        }
    }
    .action-bar {
        display: flex;
        justify-content: space-around;
        margin: 20px -20px -20px;
        border-top: 1px solid #f0f0f0;
        background-color: #fafafa;
        .el-button {
            position: relative;
            width: 100%;
            color: #898989;
            &:hover {
                color: #66b1ff;
            }
            & + .el-button {
                margin-left: 0;
                &::before {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 0;
                    width: 1px;
                    height: 14px;
                    margin-top: -7px;
                    background-color: #e8eaec;
                }
            }
        }
    }
}
</style>
